package com.example.springhelloworld.services;

import com.example.springhelloworld.mapper.DoDao;
import com.example.springhelloworld.model.VO.DoVO;
import com.example.springhelloworld.pojo.Do;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.xml.crypto.Data;
import java.util.Date;
import java.util.List;

@Service
public class DoDaoServiceImpl implements DoDaoService {

    @Resource
    private DoDao doDao;


    @Override
    public List<DoVO> queryTime() {
        return doDao.queryTime();
    }

    @Override
    public List<DoVO> queryLikeName(int min) {
        return doDao.queryLikeName( min);
    }

    @Override
    public List<DoVO> querySo(int min, int max) {
        return doDao.querySo(min,max);
    }

    @Override
    public int insertGood(String str1, String str2) {
        return doDao.insertGood(str1,str2);
    }
}
